#!/bin/sh
cd ../branches/DRUPAL-5
echo "Creating catalog of Drupal 5 translations..."
msgcat --use-first --no-wrap general.po [^g]*.po | msgattrib --no-obsolete --no-wrap -o ../de5.po
cd ../DRUPAL-6
echo "Creating catalog of Drupal 6 translations..."
msgcat --use-first --no-wrap general.po [^g]*.po | msgattrib --no-obsolete --no-wrap -o ../de6.po
cd ..
echo "Merging translations..."
msgcat --use-first --no-wrap de6.po de5.po | msgattrib --no-obsolete --no-wrap -o compendium.po
rm de5.po de6.po
echo "Done."